var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
		"msg": "OK", 
		"code": 0, 
		"data": {
		"fieldList": [
			{
			"id": "trader", 
			"name": "交易员"
			}, 
			{
			"id": "symbol", 
			"name": "股票代码"
			}, 
			{
			"id": "tradeType", 
			"name": "类型"
			}, 
			{
			"id": "price", 
			"name": "买入价格"
			}, 
			{
			"id": "comment", 
			"name": "评论"
			}, 
			{
			"id": "score", 
			"name": "分数"
			}, 
			{
			"id": "timestamp", 
			"name": "时间"
			}, 
			{
			"id": "quantity", 
			"name": "交易数量"
			}, 
			{
			"id": "fee", 
			"name": "费用"
			}, 
			{
			"id": "orderId", 
			"name": "单号"
			}
		], 
		"info": {
			"trader": "503001", 
			"orderId": "47199220180327", 
			"symbol": "002456.SZ", 
			"tradeType": "Buy", 
			"price": 20.3977, 
			"quantity": 12000, 
			"fee": 21.68, 
			"timestamp": "Mar 27, 2018 9:38:28 AM", 
			"score": 50, 
			"comment": "风险收益比较小，为-2.91469711271。"
			}
		}
	})
}